package javase.abstract_gas_station;

/**
 * 金卡：预存10000 加油享受8折优惠
 */
class GoldenCard extends Card{
    private String type;

    ////加油享受8.5折优惠
    @Override
    void discount(int consume) {
        this.setBalance(this.getBalance()-consume*0.8);
        System.out.println("当前余额剩余:"+this.getBalance());
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }
}
